import request from '@/utils/request'

export function login(data) {
    return request({
        url: '/users/app/login',
        method: 'post',
        data
    })
}

export function getUserList(data) {
    return request({
        url: '/users/app/list',
        method: 'post',
        data
    })
}

export function deleteUser(data) {
    return request({
        url: '/users/app/delete',
        method: 'post',
        data
    })
}

export function createUserDetail(data) {
    return request({
        url: '/users/app/create',
        method: 'post',
        data
    })
}

export function updateUserDetail(data) {
    return request({
        url: '/users/app/update',
        method: 'post',
        data
    })
}

export function getUserDetail(params) {
    return request({
        url: '/users/app/getDetail',
        method: 'get',
        params
    })
}

